//
//  CGSize+Extension.swift
//  SwiftProject
//
//  Created by qindong on 2021/7/16.
//

import Foundation

extension CGSize {
    // MARK: - 最小size
    static var minSize : CGSize {
        CGSize(width: CGFloat.leastNormalMagnitude, height: CGFloat.leastNormalMagnitude)
    }
    
    // MARK: - 宽高放大或缩小相同倍率
    func multipleSize(_ multiple : Double) -> CGSize {
        CGSize(width: width * multiple, height: height * multiple)
    }
}
